module.exports = {
    title: '技术文档',
    description: '文档',
    head: [
        ['link', { rel: 'icon', href: '/logo.ico' }]
    ],

    themeConfig: {
        //　顶部导航栏
        nav: [
            { text: '主页', link: '/' },
            { text: '前端', link: '/web/' },
            { text: '后端', link: '/bs/' },
            // {
            //     text: '项目/模板',
            //     items: [
            //         { text: '项目', link: '/project/' },
            //         { text: '模板', link: '/template/' }
            //     ]
            // },
            // { text: 'GitHub', link: 'https://gitee.com/dbsgw/VuePress.git' }
        ],
        // 侧边栏
        sidebar: {
            // 前端
            '/web/': [{
                title: '前端',
                collapsable: false,
                children: [
                   ['/web/html/html.md', 'html'],
                   ['/web/css/css.md', 'css'],
                   ['/web/js/js.md', 'js'],
                    {
                        title: "vue",
                        collapsable: true,
                        children: [
                            ['/web/vue/vue.md', 'vue'],
                            ['/web/vue/vue_upload_qiniu.md', 'vue图片上传七牛云'],
                            ['/web/vue/vue-virtual-scroll-list.md', 'vue中解决长列表渲染'],
                            {
                                title: "vue项目打包优化",
                                collapsable: true,
                                children: [
                                    ['/web/vue/ProjectOptimization/RemoveConsole.md', '移除项目　中所有的console.log'],
                                    ['/web/vue/ProjectOptimization/VueCdn.md', 'vue项目　使用cdn外部引入axios,vue,vue-router'],
                                    ['/web/vue/ProjectOptimization/VueProdDev.md', '配置vue打包入口，发布模式，开发模式,首页展示标题'],
                                    ['/web/vue/ProjectOptimization/VueProxy.md', 'vue3.0配置proxy代理解决项目中的跨域问题'],
                                    ['/web/vue/ProjectOptimization/VueMap.md', '去掉.map文件'],


                                ]
                            },
                        ]
                    },
                    ['/web/git/git.md', 'git'],
                    ['/web/ESLint/ESLint.md', 'ESLint'],
                    ['/web/wabpack/wabpack.md', 'Webpack'],
                ]
            }],
            //　后端
            '/bs/': [{
                title: '后端',
                collapsable: false,
                children: [
                    ['/bs/linux/', 'linux'],
                    {

                        title: "node",
                        collapsable: true,
                        children: [
                            // ['/bs/4.md', '发布新框架'],

                        ]
                    },
                    {

                        title: "golang",
                        collapsable: true,
                        children: [
                            ['/bs/golang/golang.md', 'golang'],
                        ]
                    },
                    {
                        title: "python",
                        collapsable: true,
                        children: [
                            ['/bs/python/python_request.md', 'python使用requests库基本操作'],
                            ['/bs/python/python_selenium.md', 'python使用selenium框架基本操作'],

                        ]
                    },
                    {
                        title: "redis",
                        collapsable: true,
                        children: [
                            ['/bs/redis/rediscolony.md', 'redis集群'],
                            // ['/bs/centos/centos_install.md', 'centos常用软件安装'],

                        ]
                    },
                ]
            }],
        }

    }
}
